package com.xxx.blog.base.controller;

import com.afcatstar.commons.ResultData;
import com.xxx.blog.base.domain.SysUser;
import com.xxx.blog.base.service.TestService;
import com.xxx.blog.base.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*******************************************************************************
 * Project: blog-base
 * Package: com.xxx.controller
 * Type:    TestController
 * Author:  ChenXuefei
 * Date:    2017/12/11 15:00
 *
 * Copyright (c) 2017 AFCATSTAR. All Rights Reserved.
 *******************************************************************************/
@RestController
public class TestController {
    
    @Autowired
    private UserService userService;
    
    @RequestMapping("hello")
    public ResultData<String> hello(){
        userService.addUser(new SysUser());
        return new ResultData<String>("1");
    }
}
